<head>
<script type="text/javascript">
  var djConfig = {
    isDebug: false,
    debugContainerId : "dojoDebugOutput"
  };
</script>

<script type="text/javascript" src="/assets/js/dojo.js"></script>
<script type="text/javascript">
  dojo.require("dojo.widget.ComboBox");
</script>
</head>
<?php include("header_login_required.php"); ?>
<?php
  $connection = mysql_connect(DB_SERVER, DB_USER, DB_PWD);
	mysql_select_db(DB_CATALOG);

  $query = "select c.calendar_id, c.round_nr, c.earliest_date, c.last_date
    from zt_calendar c, zt_tournament tr where tr.tournament_id = c.tournament_id
    and tr.isCurrent = 1";
  $result = mysql_query($query, $connection);
  $groupItems = array();
	while ($row = mysql_fetch_assoc($result)) {
  	$groupItem = new GroupItem();
    $groupItem->group_id = $row['group_id'];
  	$groupItem->group_name = $row['group_name'];
  	array_push($groupItems, $groupItem);
	}
?>

<table height="100%" cellSpacing="0" cellPadding="0" width="100%" border="0" bgcolor="#FFFFFF">
	<tr>
		<td id="leftFiller" valign="top" height="100%" rowspan="3" bgcolor="#666666">
			<table border="0" cellpadding="0" cellspacing="0" height="100%" width="8px">
				<tr><td>&nbsp;</td></tr>
			</table>
		</td>
		<td id="header" valign="top" width="100%">
			<table border="0" width="100%" cellpadding="3" cellspacing="0" bgcolor="#10425b">
                <tr>
                    <td bgcolor="#666666" width="40%">
                        <?php include("inc_title.html"); ?>
                    </td>
                    <td bgcolor="#666666" align="right" valign="top">&nbsp;
                          <span class="headerSmall">Huidige versie PLAYER.DBF: <?=CURRENT_PLAYER_DBF?>
                        <?php
                        if (isset($user) && $user->club_id == 100) {
                        ?>
                        <br/>
                        <a class="headerSmall" href="import_player.php">laad andere versie</a>
                        <?php
                        }
                        ?>
                        </span>
                    </td>
                </tr>
            </table>
            <table align="center" border="0" width="100%" height="90%" cellpadding="0" cellspacing="0" style="border-top:#BCDD10 4px solid;">
                <tr>
                    <?php include("inc_sublinks.php"); ?> 
                </tr>
				<tr><td colspan="2" nowrap bgcolor="#BCDD10" height="4"><img src="../../assets/images/spacer.gif" alt="" height="1" width="1"></td></tr>
				<tr>
					<td>&nbsp;</td>
					<td valign="top">
						<table align="left" cellspacing="10" width="100%">
							<tr>
								<td>
                  <div id=dojoDebugOutput></div>
                  <span class="blackHeaderLarge">Zilveren Toren <?=CURRENT_ZT_YEAR?> - Titel</span>

								</td>
							</tr>
						</table>
					</td>
				</tr>
				<tr>
			</table>
		</td>
	</tr>
</table>

<?php include("footer.php"); ?>
